package com.itheima.Operator;

import java.util.Scanner;

public class Opp {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数:");
        int sun = sc.nextInt();
        int ge = sun % 10;
        int shi = sun / 10 % 10;
        int bai = sun / 100 % 10;
        int qian = sun / 1000 % 10;
        int wan = sun / 10000 % 10;
        System.out.println("整数" + sun + "的个位数为:" + ge);
        System.out.println("整数" + sun + "的十位数为:" + shi);
        System.out.println("整数" + sun + "的百位数为:" + bai);
        System.out.println("整数" + sun + "的千位数为:" + qian);
        System.out.println("整数" + sun + "的万位数为:" + wan);
    }
}
